package sanrenxing.right.entity;

public class UserEntity {
    //用户id
    private int userId;
    //用户账号
    private String userName;
    //用户密码
    private String userPwd;
    //角色编号
    private int roleId;

    /**
     * 无参构造
     */
    public UserEntity(){}

    /**
     * 带参构造
     * @param userId
     * @param userName
     * @param userPwd
     * @param roleId
     */
    public UserEntity(int userId, String userName, String userPwd, int roleId) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.roleId = roleId;
    }

    //getter和setter方法
    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }
}
